package com.hns.phone.base.web;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hns.phone.base.service.PhoneSysCorpInfoService;
import com.hns.can.base.entity.SysUserEntity;
import com.hns.can.common.web.BaseController;

@Controller
@RequestMapping("/api/phoneSysCorpInfo")
public class PhoneSysCorpInfoController extends BaseController {
	
	@Autowired 
	private PhoneSysCorpInfoService PhoneSysCorpInfoService;
	
	
	@RequestMapping("/getCarShowStyle")
	@ResponseBody
	public Object getCarShowStyle(){
		SysUserEntity user = this.getPhoneCurrentUser();
		String corpId = user.getCorpId();
		Map<String,String> map = PhoneSysCorpInfoService.getCarShowStyle(corpId);
		return this.getReturnResult(map);
	}
}
